@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>医生看诊</h5>
            </div>
            <div style="display: none">
                <input type="hidden" id="oneChannelValue" value="">
                <input type="hidden" id="twoChannelValue" value="">
                <input type="hidden" id="thrChannelValue" value="">
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="customerName" name="客户姓名" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="customerPhone" name="电话" />
                            </div>
                            <div class="col-sm-3">
                                <#TimeCon id="startArrivalTime" name="到店时间" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                            <div class="col-sm-3">
                                <#TimeCon id="endArrivalTime" name="-" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="reservations" name="回访人" />
                            </div>
                            <div class="col-sm-3">
                                <#TimeCon id="startRevisitTime" name="预约回访时间" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                            <div class="col-sm-3">
                                <#TimeCon id="endRevisitTime" name="-" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                            <div class="form-groups">
                                <label class="col-sm-1 control-label">是否回访</label>
                                <div class="col-sm-2">
                                    <select class="form-control" id="isReturnVisit" name="isReturnVisit">
                                        <option value="">全部</option>
                                        <option value="1">是</option>
                                        <option value="2">否</option>
                                        <option value="3">已回访</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="doctor" name="医生" />
                            </div>
                            <label class="col-sm-1 btn addBtn addBtn_x2">TC</label>
                            <div class="col-sm-2 addBtn_y2">
                                <select class="form-control" id="fieldTc" name="fieldTc"></select>
                            </div>
                            <div class="form-groups">
                                <label class="col-sm-1 control-label">客户状态</label>
                                <div class="col-sm-2">
                                    <select class="form-control" id="customerStatus" name="customerStatus">
                                        <option value="">全部</option>
                                        <option value="新客首次">新客首次</option>
                                        <option value="新客二次">新客二次</option>
                                        <option value="老客">老客</option>
                                        <option value="复诊">复诊</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3">
                                <div class="search_bt" onclick="DoctorLooked.search()">搜索</div>
                                <div class="search_bt" onclick="DoctorLooked.resetSearch()">清空</div>
                                <div class="search_bt" onclick="DoctorLooked.toComment()">医生点评</div>
                                <div class="search_bt" onclick="DoctorLooked.changePrice()">医生划价</div>
                            </div>
                        </div>
                        <#table id="DoctorLookedTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/doctorLooked/doctorLooked.js"></script>
<script src="${ctxPath}/static/js/common/jsChannel.js"></script>
<script>
    var oneChanneli = document.getElementById("oneChannelValue").value;
    var twoChanneli = document.getElementById("twoChannelValue").value;
    var thrChanneli = document.getElementById("thrChannelValue").value;
    $.post(Feng.ctxPath + "/channel/getChannelsss", function (data) {
        ChannelList = data;
        channelInit('oneChannel', 'twoChannel', 'thrChannel');
    }, "json");
</script>
@}
<style>
    .search_bt, .other_bt {
        cursor: pointer;
        display: inline-block;
        width: 105px;
        height: 27px;
        line-height: 27px;
        color: white;
        text-align: center;
        font-size: 14px;
        border-radius: 20px;
        margin-bottom: 5px;
    }

    .search_bt {
        background: url("${ctxPath}/static/img/x18.png") no-repeat;
        background-size: cover;
    }

    .other_bt {
        background: url("${ctxPath}/static/img/x19.png") no-repeat;
        background-size: cover;
    }

    td a {
        display: block;
        width: 150%;
        position: relative;
        left: -25%;
    }
</style>